<!DOCTYPE html>
<html lang="">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="css/css.css">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="slideshow.css">
    <link rel="stylesheet" href="css/newcss.css">
    <link rel="stylesheet" href="css/newstyle.css">
    <script>
        
    </script>
    <!-- <script src="http://apps.bdimg.com/libs/jquery/1.10.1/jquery.min.js"></script> -->
    <script type="text/javascript">
        !window.jQuery && document.write('<script src="js/jquery.min.js"><\/script>');
    </script>
    <script src="js/vue.js" type="text/javascript"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script src="js/public.js"></script>
    <!-- <script src="js/sha1.js"></script> -->
    <script type="text/javascript">
        _navData[0].active=true
        // if(baseFn.getQueryString('user_id') != null){
        //     var _date = Date.parse(new Date())
        //     if(storageControl.isExitStorage('tempUser')){
        //         var _temp = storageControl.getStorage('tempUser').split(',')
        //         if(_temp[1]+ 3600*1000 >= _date){
        //             storageControl.setStorage({'userId':_temp[0]})
        //             storageControl.setStorage({'tempUser':_temp[0]+','+_date})
        //         }else{
        //             storageControl.setStorage({'userId':storageControl.getStorage('mainUserId')})
        //         }
        //     }else{
        //         storageControl.setStorage({'userId':storageControl.getStorage('mainUserId')})
        //     } 
        // }else{
            storageControl.removeStorage(['hotelid','appointworker'])
        // }
    </script>
    <!-- <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.4&key=5ab9d27f673462155eb8b44901eb9cd7"></script>  -->
    <!-- <script type="text/javascript" src="./js/remogeo.js"></script>  -->
    <!-- <script src="js/share_config.js"></script> -->
    <title>国医堂 · 小儿推拿</title>
</head>

<body style="background-color:#F3F2F0">
<div class="wrapper">
<div class="main mg_t0">
    <div class="layout layoutvue">
        <div class="banner">
            <ul class="banimg clearfix">
                <li v-for="(inf,index) in info" ><a :href="inf.skip_url"><img :src="inf.ad_image"></a></li>
            </ul>
            <ul class="banpoint">
                <li v-for="i in count" :class="{now:i==1}"></li>
            </ul>
        </div>
    </div>
    <div class="session">
        <a class="gblink" href="javascript:void(0)"><span class="icon gb" style="margin-right:10px;vertical-align:1px"></span></a>
        
    </div>
    <div class="session rows nopd home1 mgb0">
        <div class="cols4">
            <a href="./about.html" class="first"><span class="icon icon_lg hotel"></span>机构介绍</a>
        </div>
        <div class="cols4">
            <a href="./aboutpeople.html"><span class="icon icon_lg people"></span>专家团队</a>
        </div>
        <div class="cols4">
            <a href="./aboutpeople.html"><span class="icon icon_lg people"></span>特色项目</a>
        </div>
        <div class="cols4">
            <a href="./about.html" class="first"><span class="icon icon_lg hotel"></span>获奖荣誉</a>
        </div>
        <div class="cols4">
            <a href="./aboutpeople.html"><span class="icon icon_lg people"></span>核心派别</a>
        </div>
        <div class="cols4">
            <a href="./aboutpeople.html"><span class="icon icon_lg people"></span>快速预约</a>
        </div>
    </div>
    <div class="session">
        <p class="tit">推荐门店</p>
        <p class="tips">更贴心，更懂你</p>
        <div class="morehotelvue">
            <div class="tab">
                <p class="tabelm w_3_3 active" @click.stop="getlist(0)"><span class="tabcnt">距离最近</span></p>
                <p class="tabelm w_3_3" @click.stop="getlist(1)"><span class="tabcnt">推荐</span></p>
                <p class="tabelm w_3_3" @click.stop="getlist(2)"><span class="tabcnt">新开业</span></p>
            </div>
            <a class="rows flexrows info_list morehotel" v-for="(inf,index) in info" v-if="index < 3" @click="hoteldetail(inf.subclinic_id)" href="./hoteldetail.html">
                <div class="cols4" style="min-width:115px">
                    <div class="info_head" :class="{'bgimg_hsize':inf.imgsize}" :style="{'background-image':'url('+inf.subclinic_logo+')'}">
                        <!-- <img :src="inf.subclinic_logo" width="100%" alt="">                -->
                    </div>
                </div>
                <div class="cols8 hotelcnt">
                    <p class="info_tit">{{inf.subclinic_name}}<span class="info_tips morehotel_address"> 距离{{inf.distance}}</span></p>
                    <p class="info_txt morehotel_info">营业时间：周一至周日，08:00至22:00</p>
                    <p class="info_txt morehotel_info">4位专家大夫</p>
                    <p class="info_txt morehotel_info">98%好评率<span>空闲可约</span></p>
                </div>
            </a>
        </div>
        <a href="./morehotel.html" class="checkall">查看全部</a>
    </div>
    <div class="session">
        <p class="tit">推荐大夫</p>
        <p class="tips">专家大夫，品质推荐</p>
        <div class="moreworkervue">
            <div class="rows flexrows info_list moreworker" v-for="(inf,index) in info" :key="index" v-if="index < 3">
                <div class="cols4" style="min-width:115px">
                    <div class="info_head" :class="{'bgimg_hsize':inf.imgsize}" :style="{'background-image':'url('+inf.user_img+')'}">
                        <!-- <img :src="inf.user_img" width="100%" alt="">                -->
                    </div>
                </div>
                <div class="cols8 workercnt">
                    <p class="info_tit">{{inf.user_name}} <span>小儿推拿医院副院长</span></p>
                    <p class="info_txt"><span>中医调理师</span><span>十五年服务经验</span><span>优秀大夫</span></p>
                    
                    <p class="info_txt moreworker_info"><span v-for="ins in inf.integral_star" class="starelm"></span>已接<span class="">{{inf.simple}}</span>单，<span  class="">{{inf.integral_count}}</span>人评价，平均<span  class="">{{inf.integral_ave}}</span>分</p>
                    <a href="./order.html" @click="appointment(inf.user_id,inf.subclinic_id)" class="float_r btn btn_round btn_sm bg_gold w_3">+ 预约</a>
                </div>
                <div class="cols12 workercnt">
                    <p class="info_txt">擅长调理咳嗽，感冒，腹泻。</p> 
                    <p class="info_tips bg_blue moreworker_address">{{inf.subclinic_name}}</p>
                </div>
            </div>       
        </div>
        <a href="./moreworker.html?all=1" class="checkall">查看全部</a> 
    </div>
</div> 
<div class="siderbar telbar">
    <a href="tel:010-96889688"></a>
</div>
<div class="siderbar ybar">
    <a href="./order.html" onclick="storageControl.setStorage({'hotelid':''})"></a>
</div>
<div class="mark"></div>
<div class="pop">
    <div class="popcnt"><p>文本?</p></div>
    <div class="popbtngroup rows nopd">
        <div class="cols6 popbtn cancel"><a href="javascript:void(0)" class="popcancel">取消</a></div>
        <div class="cols6 popbtn last ok"><a href="javascript:void(0)" class="popgo">确定</a></div>
    </div>
</div> 
</div>
<div class="footer">
    <ul class="toolbar thirdbar">
        <li v-for="(inf,index) in info" :class="[inf.cls,{active:inf.active}]" @click="href(inf)"><a href="javascript:void(0)"><p>{{inf.tit}}</p></a></li>
    </ul>
</div>
</div>
<script src="slideshow.js"></script>
<script src="./js/temp.js" type="text/javascript"></script> 

<script type="text/javascript">
// alert(baseFn.getLocation().lat)
// if (AMap.UA.ios) {
//  //使用远程定位，见 remogeo.js
//  var remoGeo = new RemoGeoLocation();

// //替换方法
// navigator.geolocation.getCurrentPosition = function() {
//     return remoGeo.getCurrentPosition.apply(remoGeo, arguments);
// };

// //替换方法
// navigator.geolocation.watchPosition = function() {
//     return remoGeo.watchPosition.apply(remoGeo, arguments);
// };
// }

$(function(){
})
/*
mapObj = new AMap.Map('iCenter');
mapObj.plugin('AMap.Geolocation', function () {
    geolocation = new AMap.Geolocation({
        enableHighAccuracy: true,//是否使用高精度定位，默认:true
        timeout: 10000,          //超过10秒后停止定位，默认：无穷大
        maximumAge: 0,           //定位结果缓存0毫秒，默认：0
        convert: true,           //自动偏移坐标，偏移后的坐标为高德坐标，默认：true
        showButton: true,        //显示定位按钮，默认：true
        buttonPosition: 'LB',    //定位按钮停靠位置，默认：'LB'，左下角
        buttonOffset: new AMap.Pixel(10, 20),//定位按钮与设置的停靠位置的偏移量，默认：Pixel(10, 20)
        showMarker: true,        //定位成功后在定位到的位置显示点标记，默认：true
        showCircle: true,        //定位成功后用圆圈表示定位精度范围，默认：true
        panToLocation: true,     //定位成功后将定位到的位置作为地图中心点，默认：true
        zoomToAccuracy:true      //定位成功后调整地图视野范围使定位位置及精度范围视野内可见，默认：false
    });
    mapObj.addControl(geolocation);
    geolocation.getCurrentPosition();
    AMap.event.addListener(geolocation, 'complete', onComplete);//返回定位信息
    AMap.event.addListener(geolocation, 'error', onError);      //返回定位出错信息
});
//解析定位结果
function onComplete(data) {
    alert('定位成功')
    console.log(data)
    var _lnglat=data.position.getLng()+','+data.position.getLat()
    _lnglat='116.481488,39.990464'
    console.log(_lnglat)
    $.getJSON('http://restapi.amap.com/v3/place/text?key=d4fd9be4953500869092ec8eac9b5776&location='+_lnglat+'&keywords=国医堂&types=推拿&offset=&page=&extensions=all',function(data){
        console.log(data)
    })
    //key=您的key&keywords=国医堂&types=推拿&city=北京&children=&offset=&page=&extensions=all
    // var str=['定位成功'];
    // str.push('经度：' + data.position.getLng());
    // str.push('纬度：' + data.position.getLat());
    // if(data.accuracy){
    //         str.push('精度：' + data.accuracy + ' 米');
    // }//如为IP精确定位结果则没有精度信息
    // str.push('是否经过偏移：' + (data.isConverted ? '是' : '否'));
    // document.getElementById('tip').innerHTML = str.join('<br>');
}
//解析定位错误信息
function onError(data) {
    alert('定位失败')
    console.log(data)
    // geolocation.getCurrentPosition();
    // document.getElementById('tip').innerHTML = '定位失败';
}
weixin_config({
    timestamp:1446441224,
    nonceStr:'8qT6nNGcGHjm5vba',
    signature:'95c1f31039320eee7ba8f0667a3ba033ff292edc'
})*/
// var sha = hex_sha1('mima123465')
//  alert(sha)

</script>   
</body>
</html>